﻿using System.Threading;
using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace DotNetAgent.Core
{
	public class SleepyAgent : Agent
	{

		public SleepyAgent(Dictionary<String, Object> p_Args)
			: this(null, p_Args)
		{
		}

		public SleepyAgent(Agent p_Owner, Dictionary<String, Object> p_Args)
			: base(p_Owner, p_Args)
        {
			AddBehaviour(DoSleep);
        }

		protected void DoSleep(Dictionary<String, Object> p_Args)
		{
			try
			{
				LogInfo("Run", "zzz...");
			}
			catch (Exception ex)
			{
				LogError("Run", "Error While Running", ex);
			}
		}
	}
}
